package com.weipt.syn;

/**
 * @program: Learning
 * @description: 测试while
 * @Company: 终生学习
 * @author: peter.wei
 * @create: 2020-07-28 15:24
 **/
public class while1 {

    public static void main(String[] args) {
        int i = 0;
        while(true){
            if(i == 10){
                break;
            }
            i++;
        }
        System.out.println(i);
    }
}